package com.example.demo.util;

import org.springframework.web.client.RestTemplate;

public class ExecJs {
    public static void main(String[] args) throws Exception {
        RestTemplate restTemplate = new RestTemplate();
        String realm ="account.lenovo.com";
        String wust ="ZAgAAAAAAAGE9MTAxODcwMDM5ODQmYj0xJmM9MSZkPTIyMjc5JmU9ODQ4QTY5NkFFNjgzMkRFMzkyMDE3MzA1NUY5MzM0RjcxJmg9MTYxNjczNzY4MTYyNiZpPTQzMjAwJmlsPWNuA6ryAldUXNC3kcMuMc-n1A";
        String username ="978880162@qq.com";
        String state_time ="F031A9CB-CE43-4ABC-9FF0-F6BF396C2E0C";
        String url = String.format("https://passport.lenovo.com/wauthen5/stAccessLogin?realm=%s&wust=%s&username=%s&state_time=%s",realm,wust,username,state_time);
        String forObject = restTemplate.getForObject(url, String.class);
        System.out.println(forObject);

    }


}
